class Student(object):
    def __init__(self, name, score):
        self.name = name
        self.score = score

    def showstudentinfo(self):
        print("姓名:%s,成绩:%d" % (self.name, self.score))


stu1 = Student('张三',90)
stu2 = Student('李四',87)


stu1.showstudentinfo()
stu2.showstudentinfo()